package edu.pku.sei.transformation.editor.model;

import org.w3c.dom.Element;

import edu.pku.sei.gefcommon.descriptor.annotation.MethodProperty;
import edu.pku.sei.modeler.model.xml.XMLUtility;

public class MetaModel extends edu.pku.sei.modeler.model.core.MetaModel {
	private String address;

	@MethodProperty(catalog = "MetaModel", id = ModelPackage.METAMODEL_ADDRESS, setter = "setAddress", name = "address")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Override
	public void serialize(Element root) {
		super.serialize(root);
		XMLUtility.xmlInstance.serializeAttribute(root,
				ModelPackage.METAMODEL_ADDRESS, address);
	}
	
	@Override
	public void deSerialize(Element root) {
		super.deSerialize(root);
		address = XMLUtility.xmlInstance.deSerializeString(root,
				ModelPackage.METAMODEL_ADDRESS);
	}
}
